package com.twu.biblioteca.actions;

import com.twu.biblioteca.exceptions.BaseError;

public abstract class BaseAction {
    public void run() throws BaseError {
        printHeaders();
    }

    public abstract String actionName();

    protected void printHeaders(){
        System.out.format("\n -- %s --\n", actionName());
    }
}
